package com.huidu.bitrade.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huidu.bitrade.dto.MemberWalletDTO;
import com.huidu.bitrade.entity.MemberWallet;
import com.huidu.bitrade.query.MemberLoanPageQuery;
import com.huidu.bitrade.query.WalletModifyMemberPageQuery;
import com.huidu.bitrade.vo.MemberLoanVO;
import com.huidu.bitrade.vo.MemberWalletModifyVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Mapper
public interface MemberWalletMapper extends BaseMapper<MemberWallet> {

    /**
     *
     * @param iPage
     * @param screen MemberWalletScreen
     * @return
     */
    List<MemberWalletDTO> getMemberWalletList(IPage iPage, @Param("screen") Map<String,Object> screen);

    /**
     * 查询团队余额管理
     * @param iPage
     * @param screen
     * @return
     */
    List<MemberWalletDTO> getMemberWalletGroupList(IPage iPage, @Param("screen") Map<String,Object> screen);

    List<MemberWalletModifyVo> getMemberWalletModifyVo(IPage page, @Param("screen") WalletModifyMemberPageQuery memberPageQuery);

    BigDecimal getPlatformBalance(@Param("coin")String coin);
}
